<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');
        $this->setAction('login');
        
        $uname = new Zend_Dojo_Form_Element_TextBox(
                'name',
                array(
                    'label'     => 'Name:',
                    'required'  => true,
                )
        );
        
        $pw     = new Zend_Dojo_Form_Element_PasswordTextBox(
                 'pw', 
                 array(
                     'label'     => 'Passwort:',
                     'required'  => true,
                 )
        );
        
        $submit = new Zend_Dojo_Form_Element_SubmitButton(
                'uLogin',
                array(
                    'label'     => 'Login',
                    'required'  => false,
                    'ignore'    => true,
                )
        );
        
        $this->addElements(
                array(
                    $uname,
                    $pw,
                    $submit,                    
                )
       );
    }


}

